package cn.comon.app.scan.service.analysis.impl;

import java.util.Properties;
import org.apache.log4j.Logger;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import cn.comon.app.scan.entity.AsReportinfo;
import cn.comon.app.scan.service.analysis.IAnalysisResponse;

/**
 * 腾讯软件检测接口请求响应返回值处理
 * @author xujf
 *
 */
@Service("dubaResponseImpl")
@Scope("prototype")
@Lazy(value=true)
public class DubaAnalysisResponseImpl implements IAnalysisResponse {
    private static Logger logger = Logger.getLogger(DubaAnalysisResponseImpl.class.getName());
    
    public void processResponse(Properties params, AsReportinfo asReportinfo, Object result) {
        //网秦安全检测请求处理系统立即返回已经收到检测请求返回内容：in process
        logger.info("send result form Duba [Reportinfo ID:" + asReportinfo.getId() + "]:" + result.toString());
    }
}